#ifndef INA226_H
#define INA226_H

#include "hardware.h"

typedef struct
{
    float power;       // 功率
    float votlage;     // 电压
    float electricity; // 电流

    uint16_t read_buf; // 读缓存

} ina226_infor_t;

void ina226_init(void);
void ina226_operation(void);

extern ina226_infor_t ina226_infor;

#endif
